package com.mz.mattress.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mz.mattress.admin.api.req.CouponQueryReq;
import com.mz.mattress.api.common.Result;
import com.mz.mattress.api.entity.Coupon;
import com.mz.mattress.api.entity.CouponSendRecord;

import java.util.Set;

public interface CouponService {

//    String SEND_COUPON_URL = "http://localhost:9713/coupon/sendById?id=";

    Result<IPage<Coupon>> listPage(CouponQueryReq req);

    Result<Coupon> getById(Integer id);

    Result add(Coupon coupon);

    Result updateById(Coupon coupon);

    Result deleteByIds(Set<Integer> ids);

    Result sendCoupon(CouponSendRecord record);

}
